<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "sys_fund_detail".
 *
 * @property int $id
 * @property int $type 0广告位分成，1安装制作分成，2设备商品分成
 * @property string $money 金额
 * @property string $order_no 订单编号
 * @property int $goods_id 商品ID
 * @property int $addtime 添加时间
 */
class SysFundDetail extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'sys_fund_detail';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['type', 'money', 'order_no', 'addtime'], 'required'],
            [['money'], 'number'],
            [['order_no', 'goods_id', 'addtime'], 'integer'],
            [['type'], 'string', 'max' => 2],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'type' => '0广告位分成，1安装制作分成，2设备商品分成',
            'money' => '金额',
            'order_no' => '订单编号',
            'goods_id' => '商品ID',
            'addtime' => '添加时间',
        ];
    }
}
